        <font size="-1">
      <b>Options: </b><input id="cs" type="checkbox" name="cs" value="true"<%if (criteria.isCaseSensitive()) {%>checked<%}%>><label for="cs">Case Sensitive</label>
      <input id="kc1" type="radio" name="kc" value="all"<%if (criteria.getKeywordConstraint().equals("all")) {%>checked<%}%>><label for="kc1">All Words</label>
      <input id="kc2" type="radio" name="kc" value="any"<%if (criteria.getKeywordConstraint().equals("any")) {%>checked<%}%>><label for="kc2">Any Words</label>
      <input id="kc3" type="radio" name="kc" value="phrase"<%if (criteria.getKeywordConstraint().equals("phrase")) {%>checked<%}%>><label for="kc3">Exact Phrase</label><br />
      <b>Search: </b><br>
      <table border="0"><tr>
      <%
	      int c = 1;
	      String [] repositories = SearchAdapterFactory.getAvailableSourceRepositories();
	      for (int x=0 ;x < repositories.length; x++) {
	        String sourceId = repositories[x];
	        SearchAdapterProperties props = SearchAdapterFactory.getAdapterProperties(sourceId);
	        if (null != props) {
	        	int s_priority = EducationAuUtils.getInteger(StringUtils.checkString(request.getParameter("priority."+sourceId), ""+props.getPriority()), 1, SearchAdapterFactory.getSourceRepositoryCount());
	        	boolean newRow = (float)(c/4f)-Math.abs(c/4)==0;
      %>
      			<%=newRow?"</tr><tr>":""%>
      			<td nowrap>
      				<font size="-2">
      					<input id="sr<%=sourceId%>" type="checkbox" name="sr" value="<%=sourceId%>"<%if (sourceCollage.indexOf(sourceId) >= 0) {%> checked<%}%>>
      					<label for="sr<%=sourceId%>"><%=props.getDisplayTitle().replaceAll(" ", "&#160;")%></label>
      				</font>
      			</td>
      			<%if (debugPriority) {%>
      				<td>
      					<select name="priority.<%=sourceId%>" class="pr">
      					<%for (int i=1;i<=SearchAdapterFactory.getSourceRepositoryCount();i++) {%>
      						<option<%=s_priority==i?" SELECTED":""%>><%=i%></option>
      					<%}%>
      					</select>
      				</td>
      			<%}%>
      <%
      		c++;
          }
      	}
      %>
      </table>
      <b>Search Strategy: </b><input id="wff" type="radio" name="ss" value="<%=SMEvents.SEARCH_STRATEGY_WAIT_FOR_FASTEST%>"<%if (criteria.getSearchStrategy().equals(SMEvents.SEARCH_STRATEGY_WAIT_FOR_FASTEST)) {%>checked<%}%>><label for="wff">Quick results</label>
      <input id="wfa" type="radio" name="ss" value="<%=SMEvents.SEARCH_STRATEGY_WAIT_FOR_ALL%>"<%if (criteria.getSearchStrategy().equals(SMEvents.SEARCH_STRATEGY_WAIT_FOR_ALL)) {%>checked<%}%>><label for="wfa">Wait for all results</label><br />
      <b>Maximum Results: </b><select id="mrs"name="mr">
                                <option value="50"<%if (criteria.getMaxResults()==50) {%> SELECTED<%}%>>50</option>
                                <option value="100"<%if (criteria.getMaxResults()==100) {%> SELECTED<%}%>>100</option>
                                <option value="150"<%if (criteria.getMaxResults()==150) {%> SELECTED<%}%>>150</option>
                                <option value="200"<%if (criteria.getMaxResults()==200) {%> SELECTED<%}%>>200</option>
                              </select><br />
      <input type="hidden" name="token" value="">
      <input type="hidden" name="rset" value="">
      <input type="hidden" name="start" value="">
      <input type="hidden" name="sort" value="<%=sortAlgorithm%>"/>
      <input type="hidden" name="mtrix" value="<%=Math.random()%>"/>
      <input type="hidden" name="advanced" value="<%=isAdvanced?"1":""%>"/>
      <input type="hidden" name="prioritymode" value="<%=debugPriority?"1":""%>"/>
      </font>
